{% extends "resource_base.html" %}
{% load i18n %}
{% block head %}
<title>{% trans "备份记录 | 蓝鲸开发框架" %}</title>
{{ block.super }}
{% endblock %}

{% block content %}
<div class="page-content" style="min-width: 80%">
    <div class="bk-collapse-panel">
        <div id="panel-content2" class="panel-body panel-collapse p0 collapse in" aria-expanded="true" style="">
            <table class="bk-table bk-table-header-bordered">
                <thead>
                <tr>
                    <th>序号</th>
                    <th>主机IP</th>
                    <th>文件目录</th>
                    <th>文件后缀</th>
                    <th>备份人</th>
                    <th>备份时间</th>
                    <th>备份文件名</th>
                    <th>JOB链接</th>
                </tr>
                </thead>
                <tbody>
                {% for d in data %}
                <tr>
                    <td>{{d.id}}</td>
                    <td>{{d.ip}}</td>
                    <td>{{d.file_catalogue}}</td>
                    <td>{{d.file_ext}}</td>
                    <td>{{d.backup_username}}</td>
                    <td>{{d.backup_datetime}}</td>
                    <td>{{d.filename}}</td>
                    <td><a class="bk-text-button bk-info" title="查看JOB">{{d.job_link}}</a></td>
                </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}
